import request from '@/utils/request'
  // 新增采购信息
  export function orderCarAdd(drugIDs) {
    return request({
      url: '/medicine/cart/'+drugIDs,
      method: 'GET'
    })
  }


  //添加订单
  export function addCar(data){
    return request({
      url:"/medicine/order",
      method:"POST",
      data:data
    })
  }

  //查询供应人列表
  export function listSupplier(){
      return request({
        url: "/medicine/supplier/listAll",
        method:"get"
      })
  }

  // 查询修改购物车数量列表
  export function listCar() {
    return request({
      url: '/medicine/cart/list',
      method: 'get',
    })
  }

  //修改购物车数量
  export function updateCar(drugId,num){
       return request({
        url:"/medicine/cart/"+drugId+"/"+num,
        method:'put'
       })
  }

  //删除购物车药品数据
  export function deleteCar(drugId){
    return request({
     url:"/medicine/cart/"+drugId,
     method:'delete'
    })
}

